package com.cxlin.cwanandroid.binding

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.cxlin.cwanandroid.R

/**
 *
 * @Author: chenxunlin
 * @Date: 2024/4/30 14:09
 */
@BindingAdapter("articleStar")
fun bindArticleStar(view: ImageView, collect:Boolean){
    view.setImageResource(if (collect) R.drawable.timeline_like_pressed else R.drawable.timeline_like_normal)
}